package wm.samsung.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class confirmacionActivity extends Activity {
	private EditText parte;
	private EditText modelo;
	private Button graficar;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.confirmacion);
		parte = (EditText) findViewById(R.id.parteText);
		modelo = (EditText) findViewById(R.id.modeloText);
		graficar = (Button) findViewById(R.id.btnGraficar);
		Bundle bundle = getIntent().getExtras();
		if (bundle != null) {
			String partes = bundle.getString("claveparte");
			parte.setText(partes);
		}
		graficar.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(getBaseContext(),
						mapsActivity.class);
				startActivity(i);

			}
		});

	}

}
